//
//  SeatInformationCell.swift
//  AirTravel
//
//  Created by apple on 2021/8/11.
//

import UIKit

class ExtensionButton:UIButton{

    var number = 0
}

class SeatInformationCell: UITableViewCell {

    @IBOutlet weak var iconImg: UIImageView!
    @IBOutlet weak var reservationBtn: ExtensionButton!
   
    @IBOutlet weak var contentLab: UILabel!
    @IBOutlet weak var titleLab: UILabel!
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
        self.reservationBtn.layer.cornerRadius = 6
        self.reservationBtn.layer.masksToBounds = true
        
        let gradientLayer0 = CAGradientLayer()
        gradientLayer0.cornerRadius = 6
        gradientLayer0.frame = self.reservationBtn.bounds
        gradientLayer0.colors = [
            UIColor(red: 255.0 / 255.0, green: 142.0 / 255.0, blue: 74.0 / 255.0, alpha: 1.0).cgColor,
            UIColor(red: 255.0 / 255.0, green: 102.0 / 255.0, blue: 53.0 / 255.0, alpha: 1.0).cgColor]
        gradientLayer0.locations = [0, 1]
        gradientLayer0.startPoint = CGPoint(x: 0, y: 1)
        gradientLayer0.endPoint = CGPoint(x: 1, y: 1)
        self.reservationBtn.layer.addSublayer(gradientLayer0)
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
